package org.apache.database.entity;

import org.apache.database.utils.StringUtil;

public class ConfigInfos {
    /**
     * 连接地址
     */
    private String urlAddress;
    private String user;
    private String pass;

    private int coreConnect;

    /**
     * 驱动类
     */
    private String dvClass;

    public String getUrlAddress() {
        return urlAddress;
    }

    public void setUrlAddress(String urlAddress) {
        this.urlAddress = urlAddress;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public int getCoreConnect() {
        return coreConnect;
    }

    public void setCoreConnect(int coreConnect) {
        this.coreConnect = coreConnect;
    }

    public String getDvClass() {
        return dvClass;
    }

    public void setDvClass(String dvClass) {
        this.dvClass = dvClass;
    }

    public boolean check(){
        return StringUtil.isNullString(dvClass,user,pass,urlAddress);
    }

    @Override
    public String toString() {
        return "ConfigInfos{" +
                "urlAddress='" + urlAddress + '\'' +
                ", user='" + user + '\'' +
                ", pass='" + pass + '\'' +
                ", coreConnect=" + coreConnect +
                ", dvClass='" + dvClass + '\'' +
                '}';
    }
}
